import Vuerouter from 'vue-router'
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import Newlist from './components/news/newlist.vue'
import NumSearch from './components/news/numsearch.vue'
import NewsInfo from './components/news/newsinfo.vue'
var router = new Vuerouter({
    routes:[
        { path: '/', redirect: '/home' },
        {path:'/home',component:HomeContainer},
        {path:'/member',component:MemberContainer},
        {path:'/search',component:SearchContainer},
        {path:'/shopcar',component:ShopcarContainer},
        {path:'/home/newlist',component:Newlist},
        {path:'/home/numsearch',component:NumSearch},
        {path:'/home/newsinfo/:id',component:NewsInfo}
    ],
    linkActiveClass:'mui-active'
})
export default router